#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:2_sum_numbers.py
# author:张世航
# datetime:2024/10/31 19:23
# software: PyCharm
"""
this is function  description 
"""
# import module your need

# 2 编写一个函数,接收n个数字，求这些参数数字的和;

def sum_numbers(*args):
    return sum(args)

# 用户输入
numbers = input("请输入多个数字（用空格分隔）：")
number_list = map(float, numbers.split())  # 将输入的字符串转换为浮点数列表
print("这些数字的和:", sum_numbers(*number_list))